package com.scuola;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

public class ConfigFile {
	
	private Properties prop;
	
	public ConfigFile(){
		prop = new Properties();
		try {
			prop.load(this.getClass().getClassLoader().getResourceAsStream("/config.properties"));
		}catch (IOException ex){
			ex.printStackTrace();
		}
	}
	public String getParam(String param){
		return prop.getProperty(param);
	}

}
